package com.kymatrix.mpo.plus.bpm.server.model.form.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

@ApiModel(value = "管理后台 - 动态表单更新 Request")
@Data
@Accessors(chain=true)
public class UpdateBpmFormReq {

    @ApiModelProperty(value = "表单id", example = "1024")
    @NotEmpty(message = "表单id不能为空")
    private String id;

    @ApiModelProperty(value = "表单名称", example = "zhangsan")
    @NotNull(message = "表单名称不能为空")
    private String name;

    @ApiModelProperty(value = "表单的配置-JSON 字符串")
    @NotNull(message = "表单的配置不能为空")
    private String conf;

    @ApiModelProperty(value = "表单项的数组-JSON 字符串的数组")
    @NotNull(message = "表单项的数组不能为空")
    private List<String> fields;

    @ApiModelProperty(value = "表单状态-参见 EnableType 枚举", example = "1")
    @NotNull(message = "表单状态不能为空")
    private String status;

    @ApiModelProperty(value = "备注", example = "我是备注")
    private String remark;

}
